mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
unfinished image API
This commit is contained in:
13
src/api/user/pAvatar.js
Normal file
13
src/api/user/pAvatar.js
Normal file
@ -0,0 +1,13 @@
|
||||
export async function pAvatar(request, reply, fastify, setAvatarId) {
|
||||
try {
|
||||
/* const res = await fetch('http://localhost:3004/images', { method: "POST", headers: { } });
|
||||
if (!res.ok) {
|
||||
return reply.code(500).send({ error: "Internal server error" });
|
||||
}
|
||||
const data = await res.json();*/
|
||||
return reply.code(200).send({ msg: "Avatar uploaded successfully" });
|
||||
} catch (err) {
|
||||
fastify.log.error(err);
|
||||
return reply.code(500).send({ error: "Internal server error" });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user