This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Log; | |
use Symfony\Component\HttpFoundation\Response; | |
class LogResponseTimeMiddleware | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
A simple PHP class to perform basic operations against Amazon S3 and compatible | |
services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules. | |
Copyright 2022 Marco Arment. Released under the MIT license: | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Helpers\File; | |
use Illuminate\Http\File; | |
use Illuminate\Http\UploadedFile; | |
use Illuminate\Support\Arr; | |
class FileHelper | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12-alpine | |
WORKDIR /app | |
COPY tsconfig.json ./ | |
COPY serverless.yml ./ | |
COPY package.json ./ | |
COPY package-lock.json ./ | |
RUN npm ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package *; | |
import org.springframework.boot.web.client.RestTemplateBuilder; | |
import org.springframework.core.convert.converter.Converter; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.http.RequestEntity; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.http.converter.FormHttpMessageConverter; | |
import org.springframework.http.converter.HttpMessageConverter; | |
import org.springframework.security.oauth2.client.endpoint.OAuth2AccessTokenResponseClient; |