mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 07:02:26 +00:00

* add possibility to use strapi on a non-root base url path * fix documentation password form * use server.url and admin.url in config Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * update doc proxy Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * move server.url location in config Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * refacto Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * add possibility to put relative urls Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * allow '/' as an admin url + refacto Signed-off-by: Pierre Noël <pierre.noel@strapi.io> * update yarn.lock Signed-off-by: Pierre Noël <petersg83@gmail.com> * refacto Signed-off-by: Pierre Noël <petersg83@gmail.com> * Remove default proxy option Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com> * fix github provider Signed-off-by: Pierre Noël <petersg83@gmail.com> * fix github login Signed-off-by: Pierre Noël <petersg83@gmail.com> * Remove files that should be here Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com> Co-authored-by: Pierre Noël <pierre.noel@strapi.io> Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Export shared utilities
|
|
*/
|
|
|
|
const convertRestQueryParams = require('./convertRestQueryParams');
|
|
const buildQuery = require('./buildQuery');
|
|
const parseMultipartData = require('./parse-multipart');
|
|
const sanitizeEntity = require('./sanitize-entity');
|
|
const parseType = require('./parse-type');
|
|
const finder = require('./finder');
|
|
const logger = require('./logger');
|
|
const models = require('./models');
|
|
const policy = require('./policy');
|
|
const templateConfiguration = require('./templateConfiguration');
|
|
const { yup, formatYupErrors } = require('./validators');
|
|
const {
|
|
nameToSlug,
|
|
nameToCollectionName,
|
|
getCommonBeginning,
|
|
escapeQuery,
|
|
} = require('./stringFormatting');
|
|
const { getConfigUrls } = require('./config');
|
|
|
|
module.exports = {
|
|
yup,
|
|
formatYupErrors,
|
|
finder,
|
|
logger,
|
|
models,
|
|
policy,
|
|
templateConfiguration,
|
|
convertRestQueryParams,
|
|
buildQuery,
|
|
parseMultipartData,
|
|
sanitizeEntity,
|
|
parseType,
|
|
nameToSlug,
|
|
nameToCollectionName,
|
|
getCommonBeginning,
|
|
getConfigUrls,
|
|
escapeQuery,
|
|
};
|