API is functional again after the dependency updates

This commit is contained in:
kdeng00
2020-02-02 20:32:09 -05:00
parent 57f76ee4a4
commit b067882c09
8 changed files with 187 additions and 22 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ namespace controller {
// endpoint for uploading a song
ENDPOINT("POST", "/api/v1/song/data", songUpload,
AUTHORIZATION(std::shared_ptr<oatpp::web::server::handler::DefaultBearerAuthorizationObject>, authObject),
//AUTHORIZATION(std::shared_ptr<oatpp::web::server::handler::DefaultBearerAuthorizationObject>, authObject),
REQUEST(std::shared_ptr<IncomingRequest>, request)) {
auto authHeader = request->getHeader("Authorization");
OATPP_ASSERT_HTTP(authHeader, Status::CODE_403, "Nope");