Fix order
FossilOrigin-Name: fe4a523c06fc771378f564d640bf9c40950cc43483ce25d2dba7c5554f41d081
This commit is contained in:
parent
694195eb21
commit
5e47a98f0e
2 changed files with 5 additions and 2 deletions
|
@ -133,8 +133,7 @@ HTTP::Response Route::ActivityPub::user(std::any& args, const HTTP::Request& req
|
|||
|
||||
void ActivityPub::init_activitypub(HTTP::Server* server)
|
||||
{
|
||||
// TODO Fix these, very greedy
|
||||
server->add_route({{HTTP::Request::Type::GET, "/user/:/inbox"}, Route::ActivityPub::user_inbox});
|
||||
server->add_route({{HTTP::Request::Type::GET, "/user/:"}, Route::ActivityPub::user});
|
||||
server->add_route({{HTTP::Request::Type::GET, "/user/:/outbox"}, Route::ActivityPub::user_outbox});
|
||||
server->add_route({{HTTP::Request::Type::GET, "/user/:"}, Route::ActivityPub::user});
|
||||
}
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef MODULE_WEBFINGER
|
||||
#warning "You SHOULD (think: MUST) build Webfinger support if you want to build ActivityPub support. If you don't, then there wont be a way for most servers to discover users on your server. If you are simply testing ActivityPub routes, then you can ignore this message."
|
||||
#endif
|
||||
|
||||
#include "http/httpserver.h"
|
||||
#include "http/response.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue